﻿@{
    ViewBag.Title = "Aulas";
    ViewBag.ModuleName = "Aulas";

    List<W.Models.DataAccess.Aulas> Lista = (List<W.Models.DataAccess.Aulas>)ViewBag.List;
}

<h2>Listar</h2>
<div class="widget_inside">
    <table class="datatables regular">
        <thead>
            <tr>
                <th>
                    Nombre
                </th>
                <th>
                    Estado
                </th>
                <th class="acciones">
                    Acciones
                </th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Lista)
            {
                <tr>
                    <td>
                        @item.nombre
                    </td>
                    <td>
                        @item.EstadosRecurso.nombre
                    </td>
                    <td>
                        <select class="action">
                            <option value>Seleccione</option>
                            <option data-url="@Url.Action("Edit", new { id = item.id })" value="@Url.Action("Edit", new { id = item.id })">Modificar</option>
                            <option data-url="@Url.Action("Delete", new { id = item.id })" value="@Url.Action("Delete", new { id = item.id })">Borrar</option>
                        </select>
                    </td>
                </tr>
            }
        </tbody>
    </table>
    <div class="margin_top_15 right">
        <a href="@Url.Action("Create")" class="button green">Agregar</a>
    </div>
</div>